import request from '@/utils/request'

// api地址
const api = {
  list: '/v1/goods/list',
  detail: '/v1/goods/get'
}

// 商品列表
export const list = param => {
  return request.get(api.list, param)
}

// 商品详情
export const detail = goods_id => {
  return request.get(api.detail, { goods_id })
}
